package zouran.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * @Author: zouran
 * @Description:
 * @Date: Created in 2022 2022/12/5 21:08
 **/
@RequestMapping("")
@Controller
@CrossOrigin
public class MenuController {
    @RequestMapping("/userShow")//管理员查看用户信息
    public String mainShow(){return "userShow";}
    @RequestMapping("/adminManage") //管理员管理页面
    public String adminManage(){return "adminManage";}
    @RequestMapping("") //端口访问页面
    public String main(){return "logIn";}
    @RequestMapping("/logIn") //端口访问页面
    public String signIn(){return "logIn";}
    @RequestMapping("/userManage") //用户管理页面
    public String userManage(){return "userManage";}
    @RequestMapping("/userInformation")
    public String userInformation(){return "userInformation";}
    @RequestMapping("/news") //新闻展示页面
    public String news(){return "news";}
    @RequestMapping("/newsShow") //所有新闻信息
    public String newsShow(){return "newsShow";}
    @RequestMapping("/newsAdd")
    public String newsAdd(){return "newsAdd";}
    @RequestMapping("/signOut")
    public String signOut(){return "signOut";}
}
